

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
    <style>
    /* base */
    html,
    body,
    .container {
      width: 100%;
      height: 100%;
    }

    a,
    a:link,
    a:visited {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    *,
    ::before,
    ::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    *:focus {
      outline: 0;
    }

    .container {
      display: flex;
      padding-top: 20px;
    }

    /* Nav */
    .container .doc-nav {
      position: fixed;
      height: 100%;
      margin: 0 30px 0 40px;
      width: 280px;
    }

    .doc-nav .nav-header {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      background-color: rgb(240, 241, 242);
      height: 40px;
      padding: 16px;
      font-size: 18px;
      font-weight: 500;
      color: rgb(62, 64, 66);
      cursor: pointer;
    }

    .doc-nav .nav-content {
      height: calc(100% - 40px);
      overflow-y: auto;
      color: rgb(32, 34, 36);
    }

    .doc-nav .nav-content .nav-list,
    .doc-nav .nav-content .nav-sub-list {
      line-height: 1.5rem;
    }

    .doc-nav .nav-content .nav-label {
      display: inline-block;
      position: relative;
      padding: 2px 0 2px 20px;
      margin-bottom: 4px;
    }

    .doc-nav .nav-content .nav-sub-label {
      position: relative;
      padding: 2px 0 2px 40px;
      font-size: 14px;
    }

    .doc-nav .nav-content .nav-sub-label:hover {
      text-decoration: underline;
    }

    .doc-nav .nav-content .nav-list .nav-label.group::before {
      border-bottom: 0.25rem solid transparent;
      border-left: 0.25rem solid #6e7072;
      border-right: 0;
      border-top: 0.25rem solid transparent;
      content: '';
      display: block;
      height: 0;
      left: 0.5rem;
      position: absolute;
      top: 0.625rem;
      transition: transform 0.1s linear;
      width: 0;
    }

    .doc-nav .nav-content .nav-list .nav-label.group.active::before {
      transform: rotate(90deg);
    }

    /* doc content */
    .container .doc-content {
      position: fixed;
      height: 100%;
      width: calc(100% - 80px - 40px - 30px - 240px);
      right: 0%;
      overflow-y: auto;
    }

    .doc-title {
      border-bottom: 1px solid #dcdee0;
      font-size: 22px;
      margin: 8px 0 0;
      padding-bottom: 16px;
    }

    .doc-content h3 {
      font-size: 24px;
      font-weight: 600;
      margin: 24px 0;
    }

    .doc-content h4 {
      font-size: 22px;
      font-weight: 500;
      margin: 30px 0 8px;
    }

    .doc-content h4 span {
      color: #007d9c;
    }

    .doc-content .doc-declare {
      background-color: #fafafa;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 14px;
      overflow-x: auto;
      padding: 10px;
      tab-size: 4;
      line-height: 20px;
    }

    .doc-content .doc-comment {
      font-size: 16px;
      margin: 16px 0;
      line-height: 24px;
      word-break: break-word;
    }
  </style>

</head>
<body>
  <div class="container">
    <div class="doc-nav">
      <a href="#Documentation" class="nav-header">Documentation</a>
      <nav class="nav-content">
        <ul class="nav-list">
          <li>
            <a href="#includes" class="nav-label">Includes</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#stdbool.h" class="nav-sub-label">stdbool.h</a>
              </li>
      

              <li>
                <a href="#tuya_hal_network.h" class="nav-sub-label">tuya_hal_network.h</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#macros" class="nav-label">Macros</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#__TUYA_HAL_WIRED_H__" class="nav-sub-label">__TUYA_HAL_WIRED_H__</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#functions" class="nav-label">Functions</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#tuya_hal_wired_get_ip" class="nav-sub-label">tuya_hal_wired_get_ip</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_station_conn" class="nav-sub-label">tuya_hal_wired_station_conn</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_get_mac" class="nav-sub-label">tuya_hal_wired_get_mac</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_set_mac" class="nav-sub-label">tuya_hal_wired_set_mac</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_wifi_set_station_connect" class="nav-sub-label">tuya_hal_wired_wifi_set_station_connect</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_wifi_need_cfg" class="nav-sub-label">tuya_hal_wired_wifi_need_cfg</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_wifi_station_get_conn_ap_rssi" class="nav-sub-label">tuya_hal_wired_wifi_station_get_conn_ap_rssi</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_get_nw_stat" class="nav-sub-label">tuya_hal_wired_get_nw_stat</a>
              </li>
      

              <li>
                <a href="#tuya_hal_wired_if_connect_internet" class="nav-sub-label">tuya_hal_wired_if_connect_internet</a>
              </li>
      

              <li>
                <a href="#tuya_os_wired_intf_init" class="nav-sub-label">tuya_os_wired_intf_init</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#vars" class="nav-label">Vars</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#consts" class="nav-label">Consts</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#types" class="nav-label">Types</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#typedefs" class="nav-label">Typedefs</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
        </ul>
      </nav>
    </div>
    <div class="doc-content">
      <h2 id="Documentation" class="doc-title">Documentation</h2>
      <h3 id="includes">Includes</h3>
      

      <h4 id="stdbool.h"><span>stdbool.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;stdbool.h&gt;
</code></pre>
      <pre class="doc-comment">#include <stdbool.h>
</pre>

      <h4 id="tuya_hal_network.h"><span>tuya_hal_network.h</span></h4>
      <pre class="doc-declare"><code>#include "tuya_hal_network.h"
</code></pre>
      <pre class="doc-comment">#include "tuya_hal_network.h"
</pre>
      <h3 id="macros">Macros</h3>
      

      <h4 id="__TUYA_HAL_WIRED_H__">Marco <span>__TUYA_HAL_WIRED_H__</span></h4>
      <pre class="doc-declare"><code>#define __TUYA_HAL_WIRED_H__
</code></pre>
      <pre class="doc-comment"></pre>
      <h3 id="functions">Functions</h3>
      

      <h4 id="tuya_hal_wired_get_ip">Func <span>tuya_hal_wired_get_ip</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_get_ip(NW_IP_S *ip);</code></pre>
      <pre class="doc-comment">/**
* @brief Get wired ethernet ip info
*
* @param[in] ip: the ip addr info
*
* @note This API is used for getting wired ethernet ip info.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_station_conn">Func <span>tuya_hal_wired_station_conn</span></h4>
      <pre class="doc-declare"><code>BOOL_T tuya_hal_wired_station_conn(VOID);</code></pre>
      <pre class="doc-comment">/**
* @brief Check whether the hardware is connected to internet
*
* @param VOID
*
* @note This API is used to check whether the hardware is connected to internet.
*
* @return true on connected, false on disconnected.
*/</pre>

      <h4 id="tuya_hal_wired_get_mac">Func <span>tuya_hal_wired_get_mac</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_get_mac(NW_MAC_S *mac);</code></pre>
      <pre class="doc-comment">/**
* @brief Get wired ethernet mac information
*
* @param[out] mac: the mac information
*
* @note This API is used for getting wired ethernet mac information
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_set_mac">Func <span>tuya_hal_wired_set_mac</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_set_mac(const NW_MAC_S *mac);</code></pre>
      <pre class="doc-comment">/**
* @brief Set wired ethernet mac information
*
* @param[in] mac: the mac information
*
* @note This API is used for setting wired ethernet mac information
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_wifi_set_station_connect">Func <span>tuya_hal_wired_wifi_set_station_connect</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_wifi_set_station_connect(const char *ssid, const char *passwd);</code></pre>
      <pre class="doc-comment">/**
* @brief If the hardware has a wifi interface, and user want to connect wifi, tuya-app will notify current wifi ssid and passwd,
* and tuya-sdk will nofity user with this function. user should implement wifi connect process in this function.
*
* @param[in] ssid: ssid of router
* @param[in] passwd: password of router
*
* @note This API is used for setting ssid and password of the router.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_wifi_need_cfg">Func <span>tuya_hal_wired_wifi_need_cfg</span></h4>
      <pre class="doc-declare"><code>BOOL_T tuya_hal_wired_wifi_need_cfg(VOID);</code></pre>
      <pre class="doc-comment">/**
* @brief Check whether the hardware need to config
*
* @param VOID
*
* @note This API is used for checking whether the hardware need to config.
* if the hardware has a wifi interface, and user want to connect wifi, then return true.
* if the hardware does not have a wifi interface, or user do not want to connect wifi, return false.
*
* @return TRUE or FALSE
*/</pre>

      <h4 id="tuya_hal_wired_wifi_station_get_conn_ap_rssi">Func <span>tuya_hal_wired_wifi_station_get_conn_ap_rssi</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_wifi_station_get_conn_ap_rssi(int8_t *rssi);</code></pre>
      <pre class="doc-comment">/**
* @brief Get wifi rssi
*
* @param[out] rssi: wifi rssi
*
* @note This API is used for getting wifi rssi.
* if the hardware has a wifi interface and wifi is connected, return wifi rssi, or return null.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_get_nw_stat">Func <span>tuya_hal_wired_get_nw_stat</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_get_nw_stat(GW_BASE_NW_STAT_T *stat);</code></pre>
      <pre class="doc-comment">/**
* @brief Get network status
*
* @param[out] stat: the status of network
*
* @note This API is used for getting network status.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_hal_wired_if_connect_internet">Func <span>tuya_hal_wired_if_connect_internet</span></h4>
      <pre class="doc-declare"><code>OPERATE_RET tuya_hal_wired_if_connect_internet(BOOL_T *stat);</code></pre>
      <pre class="doc-comment">/**
* @brief Get wired connect status
*
* @param[out] stat: the status of network
*
* @note This API is used for getting wired connect status.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/</pre>

      <h4 id="tuya_os_wired_intf_init">Func <span>tuya_os_wired_intf_init</span></h4>
      <pre class="doc-declare"><code>VOID_T tuya_os_wired_intf_init(VOID_T);</code></pre>
      <pre class="doc-comment">/**
 * @brief Wired interface initialization
 *
 * @param VOID
 *
 * @note This API is used for initialization of wired interface.
 *
 * @return VOID
 */</pre>
      <h3 id="vars">Vars</h3>
      
      <h3 id="consts">Consts</h3>
      
      <h3 id="types">Types</h3>
      
      <h3 id="typedefs">Typedefs</h3>
      
    </div>
  </body>
</html>
            